<?php 
//获取顶级分类pid=0
	$cateModel=new \Common\Model\Cate;
	$topData=$cateModel->where('pid=0')->orderBy('csort','ASC')->get();

 ?>
<!DOCTYPE HTML>
<html>
<head>
<title>{{C('webSet.WEB_NAME')}}</title>
<link href="./Public/home/css/bootstrap.css" rel="stylesheet" type="text/css" media="all">
<link href="./Public/home/css/style.css" rel="stylesheet" type="text/css" media="all" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<link href='./Public/home/css/css.css' rel='stylesheet' type='text/css'>
<link href='./Public/home/css/css1.css' rel='stylesheet' type='text/css'>
<script src="./Public/home/js/jquery.min.js"></script>				
</head>
<body>
<!-- header -->
	<div class="banner">
  	    <div class="container">
				<a id="myLogo" href="index.html">My Blog</a>
			
		</div> 
			
				</div>
				
				<div class="header-bottom">
				<div class="container">
					<div class="head-nav">
						<span class="menu"> </span>
							<ul>
								<li {{if value="'CONTROLLER' eq 'Index'"}}class="active"{{endif}}><a href="index.html">首页</a></li>
								{{foreach from="$topData" value="$v"}}
								<li {{if value="Q('get.cid') eq $v['cid']"}}class="active"{{endif}}><a href="c_{{$v['cid']}}.html">{{$v['cname']}}</a></li>
								{{endforeach}}
								<div class="clearfix"> </div>
						</ul>
					</div>
					
				<!-- script-for-nav -->
					<script>
						$( "span.menu" ).click(function() {
						  $( ".head-nav ul" ).slideToggle(300, function() {
							// Animation complete.
						  });
						});
					</script>
				<!-- script-for-nav -->		
						<div class="clearfix"> </div>
			</div>
			
	</div>
	
<!-- header -->